package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 房间管理对象 tb_room
 * 
 * @author 朱欢乐
 * @date 2025-10-25
 */
public class TbRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 题目ID */
    @Excel(name = "题目ID")
    private String tmId;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    private List<TbRoomDevice> roomDeviceList;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setTmId(String tmId) 
    {
        this.tmId = tmId;
    }

    public String getTmId() 
    {
        return tmId;
    }

    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    public List<TbRoomDevice> getRoomDeviceList() {
        return roomDeviceList;
    }

    public void setRoomDeviceList(List<TbRoomDevice> roomDeviceList) {
        this.roomDeviceList = roomDeviceList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("tmId", getTmId())
            .append("createTime", getCreateTime())
            .append("state", getState())
            .toString();
    }
}
